﻿/*
   RxInputManager
   Copyright 2011 Jordan Neumeyer

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
   
   File: NoMouse.cs 
 */
using System;
using System.Reactive.Linq;
using Microsoft.Xna.Framework.Input;
using RxInputManager.Interfaces;

namespace RxInputManager.Devices
{
    public class NoMouse : RxDevice<MouseState>, IRxMouse
    {
        public NoMouse()
            : base()
        {
           // baseEvent = null;
        }

        public override void Update()
        {
           
        }

        public override bool IsAttached
        {
            get { return false; }
        }

        protected override MouseState CurrentState
        {
            get { return new MouseState(); }
        }

        public IObservable<MouseState> MouseMove
        {
            get { return Observable.Never<MouseState>(); }
        }

        public IObservable<MouseState> MouseDragAny()
        {
            return Observable.Never<MouseState>();
        }

        public IObservable<MouseState> MouseDrag(Extensions.MouseButtons button)
        {
            return Observable.Never<MouseState>();
        }

        public IObservable<MouseState> MouseClick(Extensions.MouseButtons button)
        {
            return Observable.Never<MouseState>();
        }

        public IObservable<MouseState> MouseButtonHeld(Extensions.MouseButtons button, int delay = RxInputManager.Constants.DelayTime)
        {
            return Observable.Never<MouseState>();
        }

        public IObservable<MouseState> MouseClickAny()
        {
            return Observable.Never<MouseState>();
        }

        public IObservable<int> MouseWheel(int threshold = 0)
        {
            return Observable.Never<int>();
        }


        public IObservable<MouseState> MouseClick(Extensions.MouseButtons button, Action pressed, Action released)
        {
            throw new NotImplementedException();
        }


        public IObservable<MouseState> MouseDrag(Extensions.MouseButtons button, Action pressed, Action released)
        {
            throw new NotImplementedException();
        }
    }
}
